package bookstore

class LoginTagLib {
	def loginControl = {
		if (session.user) {
			out << "Olá ${session.user.login}! ${link(action:"logout", controller:"app"){"Deslogar"}}"
		} else {
			out << "${link(action:"login", controller:"app"){"Login"}}"
		}
	}
}
